#!/usr/bin/env python3
# Copyright (C) 2019 Checkmk GmbH - License: GNU General Public License v2
# This file is part of Checkmk (https://checkmk.com). It is subject to the terms and
# conditions defined in the file COPYING, which is part of this source code package.
from typing import Any

from marshmallow import Schema as marshmallow_Schema


class Schema(marshmallow_Schema):
    schema_example: dict[str, Any] | None = None

    @property
    def dict_class(self) -> type:
        # Having an OrderedDict breaks bi, having an OrderedDict with a __repr__() which doesn't
        # break bi, breaks the OpenAPI yaml spec generator instead. It's a lose-lose situation.
        return dict
